//
//  CalendarCollectionViewCell.m
//  safeLady
//
//  Created by Justsoso on 2017/7/17.
//  Copyright © 2017年 xmy. All rights reserved.
//

#import "CalendarCollectionViewCell.h"

@interface CalendarCollectionViewCell()



@end

@implementation CalendarCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.dateLabel = [[UILabel alloc] init];
        self.dateLabel.font = [UIFont systemFontOfSize:16.f];
        self.dateLabel.textAlignment = NSTextAlignmentCenter;
        self.dateLabel.textColor = [UIColor blackColor];
        self.isToday = NO;
        [self.contentView addSubview:self.dateLabel];
        [self.dateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            UIView *view = self.contentView;
            make.centerX.equalTo(view.mas_centerX);
            make.centerY.equalTo(view.mas_centerY);
            make.width.height.equalTo(@(H(25)));
        }];
        
        self.bottomLine = [[UILabel alloc] init];
        self.bottomLine.backgroundColor = [UIColor colorWithHex:0xB2B3CA];
        self.bottomLine.cornerRadius = H(5) / 2;
        self.bottomLine.masksToBounds = YES;
        [self.contentView addSubview:self.bottomLine];
        [self.bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
            UIView *view = self.contentView;
            make.bottom.equalTo(view.mas_bottom);
            make.centerX.equalTo(view.mas_centerX);
            make.height.equalTo(@(H(5)));
            make.left.equalTo(self.dateLabel.mas_left).offset(-2);
        }];
        [self.bottomLine setHidden:YES];
        
    }
    return self;
}



@end
